1.目的
输入图像,输出其grid网格以及变换后的图像及网格
2.配置
环境:
Win10 x64
VS2015 (vc14)
OpenCV2.4.13
#设置PATH环境变量C:/opencv/bin/x86/vc14/bin
3.VS2015配置OpenCV
新建一个win32控制台空白项目;
配置:项目->属性->VC++目录->包含目录
C:/opencv/build/include/opencv2
C:/opencv/build/include/opencv
C:/opencv/build/include
配置:项目->属性->VC++目录->库目录
C:/opencv/build/x86/vc14/lib
配置:项目->属性->链接器->输入->附加依赖项
#for debug
opencv_ml2413d.lib
opencv_calib3d2413d.lib
opencv_contrib2413d.lib
opencv_core2413d.lib
opencv_features2d2413d.lib
opencv_flann2413d.lib
opencv_gpu2413d.lib
opencv_highgui2413d.lib
opencv_imgproc2413d.lib
opencv_legacy2413d.lib
opencv_objdetect2413d.lib
opencv_ts2413d.lib
opencv_video2413d.lib
opencv_nonfree2413d.lib
opencv_ocl2413d.lib
opencv_photo2413d.lib
opencv_stitching2413d.lib
opencv_superres2413d.lib
opencv_videostab2413d.lib
4.编译运行
$ $
Figure 1. test
$ $
$ $
Figure 2. def